package com.dk.controller;

import org.apache.shiro.SecurityUtils;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("crud")
public class CrudController {
    @RequestMapping("insert")
    public String insert(){
        String userName = (String)SecurityUtils.getSubject().getPrincipal();
        System.out.println("当前登录用户" + userName);
        return "insert";
    }
    @RequestMapping("update")
    public String update(){
        return "update";
    }
    @RequestMapping("delete")
    public String delete(){
        return "delete";
    }
    @RequestMapping("select")
    public String select(){
        return "select";
    }

}
